libmymath.a:my_add.o my_sub.o
	ar -rc $@ $^
my_add.o:my_add.c
	gcc -c my_add.c -o my_add.o
my_sub.o:my_sub.c
	gcc -c my_sub.c -o my_sub.o

.PHONY:output #用来发布 一串路径是时候用-p选项
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp *.a mylib/lib
	cp *.h mylib/include 

.PHONY:clean
clean:
	rm -r *.o libmymath.a *.o
